/*
* @(#)WorkflowStepRecord.java
*
* Copyright (c) 2004 DCIVision Ltd
* All rights reserved.
*
* This software is the confidential and proprietary information of DCIVision
* Ltd ("Confidential Information").  You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the license
* agreement you entered into with DCIVision Ltd.
*/

package com.dcivision.workflow.applet.editor;

import com.dcivision.framework.Utility;
import com.dcivision.workflow.bean.WorkflowStep;

/**
    WorkflowStepRecord.java

    @author          Beyond
    @company         DCIVision Limited
    @creation date   27/08/2004
    @version         $Revision: 1.4 $
    */

public class WorkflowStepRecord extends WorkflowStep{

  public static final String REVISION = "$Revision: 1.4 $";

    String stepType = "";
    int stepIndex ;

    public WorkflowStepRecord(){  
    }

    public void setStepType(String stepType){
      this.stepType = stepType;
    }

    public String getStepType(){
      return this.stepType;        
    }
    
    public void setStepIndex(int stepIndex){
        this.stepIndex = stepIndex;
    }
    
    public int getStepIndex(){
        return this.stepIndex;    
    }
    
    public String toString(){
      if(!Utility.isEmpty(super.getStepSeq())){
        return super.getStepSeq().toString()+"."+super.getStepName();
      } else {
        return super.getStepName();
      }
    }

}